<%@ page language="java" import="java.util.*" import="com.gxuwz.medical.domain.prove.*" import="com.gxuwz.medical.dao.*" import="com.gxuwz.medical.domain.person.*" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="../../css/pintuer.css">
<link rel="stylesheet" href="../../css/admin.css">
<script src="../../js/jquery-1.4.4.min.js"></script>
<script src="../../js/pintuer.js"></script>
<%
	String proveno =request.getParameter("proveno");
	proveno = new String(proveno.getBytes("ISO-8859-1"),"UTF-8");
	Prove prove=new ProveDao().query(proveno);
	Person person = new PersonDao().query(prove.getYbcardno());
 %>
<script>
$(function(){
	/*自动选择选项*/
	$("#illname").find("[value =<%=prove.getIllname()%>]").attr("selected","selected");
});
</script>
</head>
<body>


<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改慢病证信息</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="/medical/system/ProveServlet?method=edit">  
    	
     <div class="form-group">
        <div class="label">
          <label>慢病证号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=prove.getProveno() %>" name="proveno" data-validate="required:请输入医疗卡号" readonly />
	    </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>医疗卡号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=prove.getYbcardno() %>" name="ybcardno" data-validate="required:请输入医疗卡号" readonly />
	    </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>身份证号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=person.getIdcard() %>" name="idcard" data-validate="required:请输入身份证号" readonly />
	    </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>姓名：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=person.getFullname() %>" name="fullname" data-validate="required:请输入姓名" readonly />
	    </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>登记慢性病：</label>
        </div>
        <div class="field">
          <select name="illname" required id="illname">
         	<option  value="恶性肿瘤" selected="selected">恶性肿瘤</option>
         	<option  value="系统性红斑狼疮" >系统性红斑狼疮</option>
         	<option  value="精神病" >精神病</option>
        </select>
	    </div>
      </div>
      
       <div class="form-group">
        <div class="label">
          <label>建立时间：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=prove.getStime() %>" name="stime" data-validate="required:请输入姓名" readonly />
	    </div>
      </div>
      
       <div class="form-group">
        <div class="label">
          <label>到期时间：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=prove.getEtime() %>" name="etime" data-validate="required:请输入姓名" readonly />
	    </div>
      </div>
      

      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>

</body></html>